<?php

use App\Http\Controllers\QuestionController;
use App\Http\Controllers\TestController;
use App\Http\Middleware\VerifyCsrfToken;
use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', [QuestionController::class, 'index'])->name('/');

Route::get('/test', [TestController::class, 'index'])->name('test');

// Route::post('/question/list', [QuestionController::class, 'list'])->withoutMiddleware(VerifyCsrfToken::class)->name('question_list');
Route::get('/question/details', [QuestionController::class, 'details'])->name('question_details');

